Skip to content

Fix ERA5 DATM shortwave band handling.#7

Merged
ezhilsabareesh8 merged 2 commits into
cdeps1.0.92-xfrom
update-era-datamode-cdeps
May 17, 2026
Merged

Fix ERA5 DATM shortwave band handling.#7
ezhilsabareesh8 merged 2 commits into
cdeps1.0.92-xfrom
update-era-datamode-cdeps

Conversation

@ezhilsabareesh8
Copy link
Copy Markdown

@ezhilsabareesh8 ezhilsabareesh8 commented May 15, 2026

ERA5 ssrd is an accumulated energy field in J m-2, while MOM/CICE require shortwave band fluxes in W m-2. The previous ERA5 datamode incorrectly treated albedo-like stream fields as shortwave flux bands, producing near-zero shortwave reaching MOM/CICE.

This PR:

  • Converts ERA5 ssrd to flux with / 3600.
  • Constructs Faxa_swvdr, Faxa_swndr, Faxa_swvdf, and Faxa_swndf from fixed physical partitions of ssrd_flux.
  • Removes unused ERA5 albedo-like shortwave stream dependencies from the datamode.

Specific notes

CDEPS Issues Fixed (include github issue #): ACCESS-NRI/access-om3-configs#548 (comment)

Any User Interface Changes (namelist or namelist defaults changes): Changes made in datm.streams.xml and generate_xml_datm_era5.py

@ezhilsabareesh8 ezhilsabareesh8 marked this pull request as ready for review May 15, 2026 01:43
@anton-seaice
Copy link
Copy Markdown
Collaborator

@NickSzapiro-NOAA - does UFS use the ERA5 datamode in CDEPS ?

We've found these lines to calculate sw in vis/ifrared/direct/diffuse bands don't work and the resulting incoming shortwave is much too low.

https://github.com/ESCOMP/CDEPS/blob/648807485bfc4924eeeb9c45f2b62753611f4dc9/datm/datm_datamode_era5_mod.F90#L415-L420

@NickSzapiro-NOAA
Copy link
Copy Markdown

Yes ... but I think those lines are essentially unused as variables are overwritten in the ! convert J/m^2 to W/m^2 below that.
Ufuk commented some extra context at ESCOMP#376 (comment)

The changes here look similar to ESCOMP#396 , fyi

Copy link
Copy Markdown
Collaborator

@anton-seaice anton-seaice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @ezhilsabareesh8 - looks good. There are changes in https://github.com/ESCOMP/CDEPS/pull/396/changes#diff-0a1e5c02cd97ca2321696366949659240515762a42078d5a0e0eaaaa02f817b0 to swnet to but we don't use that, so that's ok for now!

@anton-seaice
Copy link
Copy Markdown
Collaborator

Thanks @NickSzapiro-NOAA - that's very useful!

@ezhilsabareesh8
Copy link
Copy Markdown
Author

Thanks @anton-seaice and @NickSzapiro-NOAA, merging this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants